package kr.ragne.letsparis;

import java.util.Random;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;

public class Missile {
	public static final int MOVE_PATTERN_1 = 0;
	public static final int MOVE_PATTERN_2 = 1;
	public static final int MOVE_PATTERN_3 = 2;
	public static final int MOVE_PATTERN_4 = 3;
	public static final int MOVE_PATTERN_5 = 4;
	public static final int MOVE_PATTERN_6 = 5;
	public static final int MOVE_PATTERN_7 = 6;
	public static final int MOVE_PATTERN_8 = 7;
	public static final int STATE_NORMAL = 0;
	public static final int STATE_OUT = 1;
	protected int movetype = 1;
	protected float mX;
	protected float mY;
	protected Player player;
	protected float speed = 1.5f;
	protected Bitmap bitmap;
	public static final Random rnd = new Random();
	
	public int state = STATE_NORMAL;
	Rect boundBox = new Rect();

	public Missile(Bitmap bitmap) {
		super();
		this.bitmap = bitmap;
		mX = 0;
		mY = 0;
	}

	public Missile(Player player) {
		mX = 0;
		mY = 0;
		this.player = player;
	}
	
	public void init() {
	}

	public void Move() {
	}

	public float getX() {
		return mX;
	}

	public float getY() {
		return mY;
	}

	void Update(long gameTime){
		Move();
	}

	public void Draw(Canvas canvas) {
		canvas.drawBitmap(bitmap, mX, mY, null);
		
	}

	public void SetPosition(float x, float y) {
		this.mX = x;
		this.mY = y;
		
	}

}
